package com.itheima.reggie.dto;

import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.entity.Orders;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class OrderDto extends Orders{
//    private static final long serialVersionUID = 1L;
//    //下单时间
//    private LocalDateTime orderTime;
//    //订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
//    private Integer status;
//
//    //实收金额
//    private BigDecimal amount;

    //菜品总数
    private BigDecimal sumNum;

    private List<OrderDetail> orderDetails = new ArrayList<>();
}
